#ifndef WTIRE_THREAD_H
#define WTIRE_THREAD_H

#include <QObject>
#include <QThread>
#include <QDebug>
#include <QMutex>
#include <QReadWriteLock>
#include <QWaitCondition>
class wtire_thread : public QThread
{
public:
    wtire_thread(QWaitCondition &cond,QReadWriteLock &lock,QString &m,QObject *parent = nullptr);
  public:
    void stop();
protected:
     void run();
   private:
     QString &msg;
     bool flag;
     int loop;
    QMutex mutex;
    QReadWriteLock & rwlock;
    QWaitCondition &cond;
};

#endif // WTIRE_THREAD_H
